/***************************************************
  > Copyright (C) 2024 ==LENA== All rights reserved.
  > File Name: 7.8上午练习.c
  > Author: lena
  > Mail:lena_li@126.com
  > Created Time: 2024年07月07日 星期日 19时30分11秒
 ***************************************************/

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int comyear(int year, int month);   //平年
int leapyear(int year, int month);   //润年
//函数的声明
int main(int argc,const char* argv[])
{
	int year=0,month=0,day=0;
	scanf("%d %d",&year,&month);
	day=comyear( year, month);
	printf("%d",day);
	return 0;
}
   int x=0,y=0,day=0;
   int comyear(int year,int month){
	if(year%4==0&&year%100!=0||year%400==0)
	{if(month==2){
		day=29;
	}
	}
	switch(month){
		case 12:day=31; break;
		case 11:day=30; break;
		case 10:day=31; break;
		case 9:day=30; break;
		case 8:day=31; break;
		case 7:day=31; break;
		case 6:day=30; break;
		case 5:day=31; break;
		case 4:day=30; break;
		case 3:day=31; break;
		//case 2:day=28; break;
		case 1:day=31; break;
	}
	return day;
}
